From: Jan Djärv Date: Fri, 4 Sep 2009 05:33:13 +0000 (+0000) Subject: (x_focus_changed): If we get a focusout and pointer X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10657 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=27589b7bb6b734fe55cd91cc44ae30898f30ccce;p=emacs.git (x_focus_changed): If we get a focusout and pointer is invisible, make it visible. --- diff --git a/src/xterm.c b/src/xterm.c index 1e13ae8858b..a2af7894cc2 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3139,6 +3139,7 @@ XTtoggle_invisible_pointer (f, invisible) else XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), f->output_data.x->current_cursor); + f->pointer_invisible = invisible; UNBLOCK_INPUT; } @@ -3372,6 +3373,8 @@ x_focus_changed (type, state, dpyinfo, frame, bufp) if (FRAME_XIC (frame)) XUnsetICFocus (FRAME_XIC (frame)); #endif + if (frame->pointer_invisible) + XTtoggle_invisible_pointer (frame, 0); } }